﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <div>
        <table class="table table-striped">
            <thead>
                <tr>
                    <td>Empresa</td>
                    <td>Localidad</td>
                    <td>Numero de darsena</td>
                    <td>Fecha y hora</td>
                    <td>Interno del micro</td>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr>
                        <td>@item.Empresa.Codigo</td>
                        <td>@item.Destino.Codigo</td>
                        <td>@item.NumeroDarsena</td>
                        <td>@item.FechaHora</td>
                        <td>@item.InternoMicro</td>

                        <td><a href="@Url.Action("borrar", "toque", new { id = item.Id })">Borrar</a></td>
                        <td><a href="@Url.Action("modificar", "toque", new { id = item.Id })">Modificar</a></td>
                    </tr>
                }

            </tbody>
        </table> <a href="@Url.Action("agregar", "toque")">AGREGAR</a>
            
    </div>
</body>
</html>
